package net.idugic.dto;

import java.io.Serializable;

public class QueryForwardDTO implements Serializable {

	private static final long serialVersionUID = -1045275401787796899L;

	private Integer id = null;

	private Integer query = null;

	private String forwarder_account = null;

	private String recipient_account = null;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getQuery() {
		return query;
	}

	public void setQuery(Integer query) {
		this.query = query;
	}

	public String getRecipient_account() {
		return recipient_account;
	}

	public void setRecipient_account(String recipient_account) {
		this.recipient_account = recipient_account;
	}

	public String getForwarder_account() {
		return forwarder_account;
	}

	public void setForwarder_account(String forwarder_account) {
		this.forwarder_account = forwarder_account;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((recipient_account == null) ? 0 : recipient_account.hashCode());
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		result = prime * result + ((query == null) ? 0 : query.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final QueryForwardDTO other = (QueryForwardDTO) obj;
		if (recipient_account == null) {
			if (other.recipient_account != null)
				return false;
		} else if (!recipient_account.equals(other.recipient_account))
			return false;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		if (query == null) {
			if (other.query != null)
				return false;
		} else if (!query.equals(other.query))
			return false;
		return true;
	}

}
